package com.cnzhy.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zhaoyan5
 */
@Slf4j
@RestController
public class HelloLogController {

    @GetMapping("/hello/{name}")
    public String hello(@PathVariable String name) {
        log.info("你好,{}", name);
        return name;
    }

}
